package main

import (
	"gitee.com/wanjimao/dongli-kit/fxmain"
	"gitee.com/wanjimao/dongli-kit/mq/pkg/mfx"
	"gitee.com/wanjimao/dongli-kit/orm/pkg/ofx"
	"gitee.com/wanjimao/dongli-kit/pkg/mongopkg"
	"gitee.com/wanjimao/dongli-kit/pkg/mysqlpkg"
	"gitee.com/wanjimao/dongli-kit/pkg/setting"
	"gitee.com/wanjimao/dongli-platform/cmd/profile/environmentvariable"

	profile "gitee.com/wanjimao/dongli-platform/services/profile/pkg/module"
	"gitee.com/wanjimao/dongli-platform/tools"
)

func main() {
	//初始化环境变量
	environmentvariable.SetEnvironmentVariables()
	tools.VarToolsObject.InitRandName()
	tools.VarToolsObject.InitScene()
	tools.VarToolsObject.InitItem()
	tools.VarToolsObject.InitInitialClothing()
	tools.VarToolsObject.InitInitialProps()
	fxmain.Main(
		ofx.RedisCacheModule,
		profile.ProfileModule,
		mfx.NatsModule,
		//auth.AuthMiddlewareModule,
		setting.Module,  //todo config 配置
		mysqlpkg.Module, //todo 接入mongo服务
		mongopkg.Module, //todo 接入mongo服务
	)
}
